package com.ruoyi.erp.mapper;

import java.util.List;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.erp.domain.BzFaVouchersDetail;

/**
 * 资产变动Mapper接口
 * 
 * @author ztj
 * @date 2023-04-18
 */
public interface BzFaVouchersDetailMapper 
{
    /**
     * 查询资产变动
     * 
     * @param id 资产变动主键
     * @return 资产变动
     */
    public BzFaVouchersDetail selectBzFaVouchersDetailById(Long id);
    public List<BzFaVouchersDetail> selectBzFaVouchersDetailByIds(Long[] ids);
    /**
     * 查询资产变动列表
     * 
     * @param bzFaVouchersDetail 资产变动
     * @return 资产变动集合
     */
    public List<BzFaVouchersDetail> selectBzFaVouchersDetailList(BzFaVouchersDetail bzFaVouchersDetail);

    /**
     * 新增资产变动
     * 
     * @param bzFaVouchersDetail 资产变动
     * @return 结果
     */
    public int insertBzFaVouchersDetail(BzFaVouchersDetail bzFaVouchersDetail);

    /**
     * 修改资产变动
     * 
     * @param bzFaVouchersDetail 资产变动
     * @return 结果
     */
    public int updateBzFaVouchersDetail(BzFaVouchersDetail bzFaVouchersDetail);

    public int updateBzFaVouchersDetailIds(Long[] ids);
    public int updateBzFaVouchersDetailIdsFail(Long[] ids);

    @DataSource(value = DataSourceType.SLAVE)
    public int updateBzFaVouchersDetailIdErp(BzFaVouchersDetail bzFaVouchersDetail);
    /**
     * 删除资产变动
     * 
     * @param id 资产变动主键
     * @return 结果
     */
    public int deleteBzFaVouchersDetailById(Long id);

    /**
     * 批量删除资产变动
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBzFaVouchersDetailByIds(Long[] ids);
}
